<%@ page import="util.CookieUtil" %>
<%@ page import="entity.User" %><%--
  Created by IntelliJ IDEA.
  User: Teacher
  Date: 2025/3/26
  Time: 9:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>主页</title>
</head>
<body>
<%--<h1>欢迎您:<%=CookieUtil.findByName("username",request)%></h1>--%>
<%
    User user = (User) session.getAttribute("user");
%>
<h1>欢迎您:<%=user.getUsername()%></h1>
</body>
</html>
